<template>
  <div class="root top">
    <div class="content font-2">
      <div
        class="logo"
        @click="
          () => {
            router.push('/index');
          }
        "
      >
        <img src="@/assets/imgs/logo.png" alt="" />
      </div>
      <div class="text">尚医通 预约挂号统一平台</div>

      <div class="help font-2-c">帮助中心</div>
      <div class="login font-2-c" @click="toCssDemo">cssDemo</div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
let router = useRouter();

let toCssDemo = () => {
  router.push('/cssDemo/rotateCircle');
};
</script>

<style scoped lang="scss">
.root {
  width: 100vw;
  position: fixed;
  z-index: 99;
  background-color: #fff;
  top: 0;
  box-shadow: $box-shadow1;

  .content {
    text-align: center;
    align-items: center;
    font-size: 22px;
    color: $theme-color;
    height: 70px;
    .logo {
      cursor: pointer;
      width: 50px;
      margin-right: 20px;
      img {
        width: 100%;
      }
    }
    .text {
      margin-right: 600px;
    }

    .help,
    .login {
      color: rgb(0, 0, 0);
      margin-right: 13px;
      font-size: 16px;
    }

    display: flex;
    margin: 0 auto;
    width: 1200px;
    text-align: center;
  }
}
</style>
